<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/md5.asp"-->
<!--#include file="../common/admin.asp"-->
<%
id=request.QueryString("id")
if id<>"" then
	set rs=server.CreateObject("adodb.recordset")
	sql="select * from Seat where id="&id&""
	rs.open sql,conn,1,3
	if not rs.eof then
		 content=rs("content")
	rs.close
	set rs=nothing
	end if
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>add</title>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<style>body {background-color: #eaece1;}</style>
</head>

<body>
<div class="main">
  <div class="main-title">操作</div>
  <div class="main-content">
  <table width="100%" border="0" cellspacing="1" cellpadding="3" class="tab">
  <form action="" method="post">
  <tr>
    <td width="21%" bgcolor="#FFFFFF">备注</td>
    <td width="79%" bgcolor="#FFFFFF"><textarea name="content" cols="40" rows="6" class="content-input" id="content"><%=content%></textarea></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF"><input type="submit" name="button" id="button" value="保存" />
    <a href="javascript:;" onClick="javascript:history.back(-1);">返回</a>
      </td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
  <tr>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
  <tr>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
    </form>
  </table>
</div>
</div>
</body>
</html>
<%
if request.Form("button")="保存" then

	  content=request.Form("content")

	  set rsx=server.createobject("adodb.recordset")
	  sql="select * from Seat where id="&id&""
	  rsx.open sql,conn,1,3
	  rsx("content")=content
	  rsx.update
	  response.write"<script language=JavaScript>{window.alert('保存成功！');window.location.href='edit.asp?id="&id&"';}</script>"
	  rsx.close
	  set rsx=nothing
end if
%>